class Conversation {
  String avatar;
  String title;
  String des;
  String updateAt;
  bool isMute;
  int unreadMsgCount;
  bool displayDot;
  int groupId;
  String userId;
  int type;
  String sessionId;


  bool isAvatarFromNet() {
    if (this.avatar.indexOf('http') == 0 || this.avatar.indexOf('https') == 0) {
      return true;
    }
    return false;
  }

  Conversation(
      {required this.avatar,
      required this.title,
      required this.des,
      required this.updateAt,
      this.isMute: false,
      this.unreadMsgCount: 0,
      this.displayDot: false,
      required this.groupId,
      required this.userId,
      required this.type,
      required this.sessionId
      })
      : assert(avatar != null),
        assert(title != null),
        assert(updateAt != null);
}
